package supermarket;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;

/**
 * 数据库，用来存放所有的类信息和属性信息
 */
public class DataPool implements Serializable {
    private String flag; // 用来传递标识
    private User user; // 传递用户
    private String scan; // 传递扫描的商品号
    private Commodity commodity; // 传递商品对象
    private ArrayList<Commodity> list;// 传递商品集合对象
    private ArrayList<Commodity> buyList;// 传递已购买的商品集合对象
    private String vipCardNum; // 传递vip的卡号
    private String search; // 传递查找的商品编号
    private int modify; // 传递修改的数量
    private int out; // 传递出库的数量
    private String oneGoods;// 传递定义好的编号的商品

    public ArrayList<Commodity> getBuyList() {
        return buyList;
    }

    public void setBuyList(ArrayList<Commodity> buyList) {
        this.buyList = buyList;
    }

    public String getOneGoods() {
        return oneGoods;
    }

    public void setOneGoods(String oneGoods) {
        this.oneGoods = oneGoods;
    }

    public int getOut() {
        return out;
    }

    public void setOut(int out) {
        this.out = out;
    }

    public int getModify() {
        return modify;
    }

    public void setModify(int modify) {
        this.modify = modify;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public String getVipCardNum() {
        return vipCardNum;
    }

    public void setVipCardNum(String vipCardNum) {
        this.vipCardNum = vipCardNum;
    }

    public ArrayList<Commodity> getList() {
        return list;
    }

    public void setList(ArrayList<Commodity> list) {
        this.list = list;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public String getScan() {
        return scan;
    }

    public void setScan(String scan) {
        this.scan = scan;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

}